package com.guoning.office_system.service;

import com.guoning.office_system.model.AccountingRecord;
import com.guoning.office_system.model.AccountingRecordWithUserAndRoom;
import com.guoning.office_system.model.User;
import com.guoning.office_system.vo.Criteria;
import com.guoning.office_system.vo.PageBean;

import java.util.List;

public interface AccountingRecordService {
    Long selectByConditionCount(Criteria criteria);

    PageBean selectByCondition(Criteria criteria, PageBean pageBean);

    Long insert(AccountingRecord record);

    AccountingRecordWithUserAndRoom selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AccountingRecord record);

    int updateForDelete(List<AccountingRecord> recordList, User user);

    int updateRecordStatus(List<AccountingRecord> recordList, User user, Integer status);

    List<AccountingRecordWithUserAndRoom> selectByTimeAndRecordId(AccountingRecord accountingRecord);
}